#include "Rectangle.h"


Rectangle::Rectangle()
{

}

Rectangle::Rectangle(double wid, double hgt)
{
	width = wid;
	height = hgt;
}

double Rectangle::getWidth()
{
	return width;
}

double Rectangle::getHeight()
{
	return height;
}

bool Rectangle::pointInside(double *position, double error)
{
	if((abs(position[0]) < width/2.0)  && (abs(position[1]) < height/2.0))
	{
		return true;
	}
	else
	{
		return false;
	}
}